package exp.parser;

import grammar.parser.FuncFParams;

public class Cond extends ExpParser {
    private final ExpParser lOrExp;

    public Cond(ExpParser lOrExp) {
        super(false, lOrExp.isConst());
        this.lOrExp = lOrExp;
    }

    public static Cond buildCond() {
        return new Cond(LOrExp.parseLOrExp());
    }

    @Override
    public LVal toLVal() {
        return null;
    }

    @Override
    public Integer compute() {
        return lOrExp.getValue();
    }

    @Override
    public FuncFParams.FuncFParam checkDimension() {
        return new FuncFParams.FuncFParam();
    }
}
